#include <stdio.h>
#include <string.h>
int main()
{
    int  arr[10] = {5,9,10,52,13,6,47,2,10,4};
   
    void ex (int arr[],int n);
    int n = sizeof(arr)/sizeof(arr[0]);
    ex(arr,n);
    for(int i = 0;i < 10;i++)
    {
        printf("%d\n",arr[i]);
    }
    return 0;
}
void ex (int arr[],int n)
{
    int i = 0;
    for(i = 0;i < n;i++)
    {
        for(int j =i + 1;j < n;j++)
        {
            if(arr[i]>arr[j])
            {
                int temp = 0;
                temp = arr[i];
                arr[i] = arr[j];
                arr[j] = temp;
            }
        }
    }
}